package com.aaa.mrcai.controller;

import com.aaa.mrcai.pojo.entity.Check;
import com.aaa.mrcai.query.CheckQuery;
import com.aaa.mrcai.result.AjaxResult;
import com.aaa.mrcai.service.CheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author meowyf
 * @version 1.0
 * @Name Z_MJ
 * @date 2021/12/19 20:29:35
 */
@RestController
@RequestMapping("check")
public class CheckController {
    @Autowired
    private CheckService checkService;
    @RequestMapping("list")
    public AjaxResult list(CheckQuery checkQuery){
        return checkService.list(checkQuery);
    }

    @RequestMapping("/listOther/{id}")
    public AjaxResult listOther(@PathVariable int id){
        return checkService.listOther(id);
    }
}
